package com.yun.zf.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.zf.admin.mapper.ZfPactCertMapper;
import com.yun.zf.admin.service.ZfPactCertService;
import com.yun.zf.common.admin.domain.ZfPactCert;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 客户证件信息 服务实现类
 * </p>
 *
 * @author cj
 * @since 2021-08-06
 */
@Service
public class ZfPactCertServiceImpl extends ServiceImpl<ZfPactCertMapper, ZfPactCert> implements ZfPactCertService {

    @Override
    public int delCert(Long pactId, Long proCode, Long cityCode) {
        QueryWrapper<ZfPactCert> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(ZfPactCert::getPactId,pactId).eq(ZfPactCert::getCityCode,cityCode)
                .eq(ZfPactCert::getProvinceCode,proCode);
        return baseMapper.delete(wrapper);
    }


}
